﻿using AgileDevTool.Helpers;
using System.Windows.Controls;

namespace AgileDevTool.UserControls
{
    /// <summary>
    /// EditorUserControl.xaml 的交互逻辑
    /// </summary>
    public partial class EditorUserControl : UserControl
    {
        public EditorUserControl()
        {
            InitializeComponent();

            UIHelper.tbk_File = tbk_File;
            UIHelper.rtb1 = rtb1;
            UIHelper.img1 = img1;
        }

        private void rtb1_TextInput(object sender, System.Windows.Input.TextCompositionEventArgs e)
        {
            var file = tbk_File.Tag.ToString();
            tbk_File.Text = $"* {file}";
        }
    }
}
